package com.example.asset.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户权限
 */
@TableName(value = "sys_user_role")
@Data
@NoArgsConstructor
public class SysUserRole{
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 菜单路由key, 前端path
     */
    private String menuKey;

    /**
     * 菜单名称
     */
    private String name;

    /**
     *
     */
    private Date createTime;

    public SysUserRole(Long userId, String menuKey, String name){
        this.userId = userId;
        this.menuKey = menuKey;
        this.name = name;
    }
}